package com.design.designmode.action.vistor;

/**
 * @author hxl
 * @since 2023-04-18
 */
public class Student extends Person {

    private int score;

    public Student(String name, int age, int score) {
        super(name, age);

        this.score = score;
    }

    public int getScore() {
        return score;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitStudent(this);
    }
}
